/*
 * @Author: sunzhijun 
 * @Date: 2019-08-01 15:22:01 
 * @Last Modified by: sunzhijun
 * @Last Modified time: 2019-11-27 13:38:27
 */
import React from 'react';
import { base } from 'nc-lightapp-front';
import {render, connect} from 'src/hrpub/common/frame';
import './index.less';
const UniqueModal = render({

})(({props, state}) => {
    const { NCModal, NCButton } = base;
    const { action, main, form } = props;
    const { language } = main;
    return(
        <React.Fragment>
            <NCModal
                show={ main.isModalVisible }
                size="sm"
                className="unique-modal"
                onHide={ action.uniquemodalAct.hiddenModal }
                // onEntered={this.showHandle}
                backdrop="static"
            >
                <NCModal.Header
                    closeButton={true}
                >
                    {/* 国际化处理： 请输入人员唯一性信息 */}
                    {language['hi6007-000048']}
                </NCModal.Header>
                <NCModal.Body>
                    <div className="only-info-content">
                        {form.createForm('uniqueTemp')}
                    </div>
                </NCModal.Body>
                <NCModal.Footer>
                    <NCButton
                        colors="primary"
                        onClick={ action.uniquemodalAct.addUniqueInfo }
                    >
                        {/* 国际化处理： 确认 */}
                        {language['hi6007-000174']}
                    </NCButton>
                    <NCButton
                        colors="secondary"
                        onClick={ action.uniquemodalAct.hiddenModal }
                    >
                        {/* 国际化处理： 取消 */}
                        {language['hi6007-000005']}
                    </NCButton>
                </NCModal.Footer>
            </NCModal>
        </React.Fragment>
    )
});

export default UniqueModal;